package com.huawei.esdk.tp.cxf.enumgen;

public abstract class ConfStatusMapping
{
    public final static int MIN = 0;
    public final static int MAX = 5;
    
    public static Integer str2Int(String status)
    {
        if (null == status)
        {
            return null;
        }
        if ("NOEXIST".equals(status))
        {
            return 1;
        }
        else if ("SCHEDULED".equals(status))
        {
            return 2;
        }
        else if ("ONGOING".equals(status))
        {
            return 3;
        }
        else if ("NOPERMISSION".equals(status))
        {
            return 4;
        }
        else if ("END".equals(status))
        {
            return 5;
        }
        else
        {
            return null;
        }
    }
}
